package com.misboot.document.mapper;

import com.misboot.document.model.OfDocument;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 文档管理
 *
 * @Author 佐佑科技
 * @Email fengkai@zuoyo.com
 * @Date 2023-09-15 10:55:01
 */
public interface OfDocumentMapper extends tk.mybatis.mapper.common.Mapper<OfDocument> {

    //分页
    List<OfDocument> getPageSet(@Param("filterSort") String filterSort);

    //批量删除
    int executeDeleteBatch(Object[] var1);

    //批量删除(根据id)
    int executeDeleteBatchByIds(@Param("ids") String [] ids);

    //根据Pid获取数据集合
    List<OfDocument> getListByPid(@Param("pid") String pid);

    Integer getComOfDocumentListByPids(@Param("pids") String [] pids);

    OfDocument getDataById(@Param("id") Integer id);

    Integer getSubsetComtByIdAndWhetherFolder(@Param("id") Integer id, @Param("whetherFolder") Integer whetherFolder);

}
